<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>UniMRCP: g711.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">UniMRCP
   &#160;<span id="projectnumber">1.5.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6719ab1f1f7655efc2fa43f7eb574fd1.html">libs</a></li><li class="navelem"><a class="el" href="dir_342be8fa773ff0594874056fe107febd.html">mpf</a></li><li class="navelem"><a class="el" href="dir_92459038e0c04805cc4a923303ee7ebb.html">codecs</a></li><li class="navelem"><a class="el" href="dir_c869e1434805aa8f8c945b70b8ed45ce.html">g711</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">g711.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A-law and u-law conversion routines.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="mpf_8h_source.html">mpf.h</a>&quot;</code><br/>
</div>
<p><a href="g711_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a3e9fb5439e29127c7d1d91a966adf0d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e9fb5439e29127c7d1d91a966adf0d1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ULAW_BIAS</b>&#160;&#160;&#160;0x84           /* Bias for linear code. */</td></tr>
<tr class="separator:a3e9fb5439e29127c7d1d91a966adf0d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3a0f660c1b51defbf6407fefb10c267"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac3a0f660c1b51defbf6407fefb10c267"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ALAW_AMI_MASK</b>&#160;&#160;&#160;0x55</td></tr>
<tr class="separator:ac3a0f660c1b51defbf6407fefb10c267"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a37decc9d4106a76d0dae727d930f9ef8"><td class="memItemLeft" align="right" valign="top">apr_byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g711_8h.html#a37decc9d4106a76d0dae727d930f9ef8">alaw_to_ulaw</a> (apr_byte_t alaw)</td></tr>
<tr class="memdesc:a37decc9d4106a76d0dae727d930f9ef8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transcode from A-law to u-law, using the procedure defined in G.711.  <a href="#a37decc9d4106a76d0dae727d930f9ef8">More...</a><br/></td></tr>
<tr class="separator:a37decc9d4106a76d0dae727d930f9ef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c9eb0057d139a28a4ae58e7491b280"><td class="memItemLeft" align="right" valign="top">apr_byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g711_8h.html#a73c9eb0057d139a28a4ae58e7491b280">ulaw_to_alaw</a> (apr_byte_t ulaw)</td></tr>
<tr class="memdesc:a73c9eb0057d139a28a4ae58e7491b280"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transcode from u-law to A-law, using the procedure defined in G.711.  <a href="#a73c9eb0057d139a28a4ae58e7491b280">More...</a><br/></td></tr>
<tr class="separator:a73c9eb0057d139a28a4ae58e7491b280"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A-law and u-law conversion routines. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a37decc9d4106a76d0dae727d930f9ef8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">apr_byte_t alaw_to_ulaw </td>
          <td>(</td>
          <td class="paramtype">apr_byte_t&#160;</td>
          <td class="paramname"><em>alaw</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transcode from A-law to u-law, using the procedure defined in G.711. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alaw</td><td>The A-law sample to transcode. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The best matching u-law value. </dd></dl>

</div>
</div>
<a class="anchor" id="a73c9eb0057d139a28a4ae58e7491b280"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">apr_byte_t ulaw_to_alaw </td>
          <td>(</td>
          <td class="paramtype">apr_byte_t&#160;</td>
          <td class="paramname"><em>ulaw</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transcode from u-law to A-law, using the procedure defined in G.711. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alaw</td><td>The u-law sample to transcode. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The best matching A-law value. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 22 2017 10:11:48 for UniMRCP by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
